package com.pan.creational.builder;

import com.pan.creational.builder.build.EverymanBuilder;
import com.pan.creational.builder.build.LegDisabledBuilder;
import com.pan.creational.builder.entity.Person;

public class BuilderApplication {
    public static void main(String[] args) {
        System.out.println("正常人：");
        EverymanBuilder everymanBuilder = new EverymanBuilder();
        Person everyman = everymanBuilder.construct();
        everyman.live();

        System.out.println("\n\n\n残疾人：");
        LegDisabledBuilder legDisabledBuilder = new LegDisabledBuilder();
        Person disabledPerson = legDisabledBuilder.construct();
        disabledPerson.live();
    }
}
